package splitframe.farm.computefarm;

import java.rmi.RMISecurityManager;

import splitframe.farm.serviceutil.MulticastServiceUtil;

public class SplitFrameClient {

	static {
		if (System.getSecurityManager() == null) {
			System.setSecurityManager(new RMISecurityManager());
		}
		String codebase = "";

		try {
			MulticastServiceUtil multicastServiceUtil = new MulticastServiceUtil(
					false);
			codebase = multicastServiceUtil.getCodebaseUrl();
		} catch (Exception e) {
			e.printStackTrace();
		}
		System.setProperty("java.rmi.server.codebase", codebase);
	}

}
